<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta name="generator" content="ApiGen 2.4.0">

	<title>Class RedMVC\HttpRequest | RedMVC Framework</title>

	<script type="text/javascript" src="resources/combined.js?1841058525"></script>
	<script type="text/javascript" src="elementlist.js?2161939627"></script>
	<script type="text/javascript">
		var ApiGen = ApiGen || {};
		ApiGen.options = {"elementDetailsCollapsed":true,"elementsOrder":"natural"};
	</script>
	<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3295955786">

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>

		<div id="groups">

			<h3>Namespaces</h3>
			<ul>
				<li><a href="namespace-PHP.html">PHP</a>
						</li>
				<li class="active"><a href="namespace-RedMVC.html">RedMVC</a>
						<span></span>
						<ul>
				<li><a href="namespace-RedMVC.Auth.html">Auth</a>
						<span></span>
						<ul>
				<li><a href="namespace-RedMVC.Auth.Adapter.html">Adapter</a>
						</li>
				<li><a href="namespace-RedMVC.Auth.Storage.html">Storage</a>
						</li>
							</ul></li>
				<li><a href="namespace-RedMVC.CodeGenerator.html">CodeGenerator</a>
						</li>
				<li><a href="namespace-RedMVC.Controller.html">Controller</a>
						</li>
				<li><a href="namespace-RedMVC.DataTable.html">DataTable</a>
						</li>
				<li><a href="namespace-RedMVC.Db.html">Db</a>
						</li>
				<li><a href="namespace-RedMVC.Drawing.html">Drawing</a>
						<span></span>
						<ul>
				<li><a href="namespace-RedMVC.Drawing.Color.html">Color</a>
						</li>
							</ul></li>
				<li><a href="namespace-RedMVC.Event.html">Event</a>
						</li>
				<li><a href="namespace-RedMVC.Feed.html">Feed</a>
						</li>
				<li><a href="namespace-RedMVC.Form.html">Form</a>
						<span></span>
						<ul>
				<li><a href="namespace-RedMVC.Form.Element.html">Element</a>
						</li>
				<li><a href="namespace-RedMVC.Form.Validator.html">Validator</a>
						</li>
							</ul></li>
				<li><a href="namespace-RedMVC.Mail.html">Mail</a>
						</li>
				<li><a href="namespace-RedMVC.Model.html">Model</a>
						</li>
				<li><a href="namespace-RedMVC.Router.html">Router</a>
						</li>
							</ul></li>
			</ul>
		</div>

		<hr>

		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-RedMVC.Acl.html">Acl</a></li>
				<li><a href="class-RedMVC.Auth.html">Auth</a></li>
				<li><a href="class-RedMVC.Bootstrap.html">Bootstrap</a></li>
				<li><a href="class-RedMVC.Browser.html">Browser</a></li>
				<li><a href="class-RedMVC.Config.html">Config</a></li>
				<li><a href="class-RedMVC.DataTable.html">DataTable</a></li>
				<li><a href="class-RedMVC.Feed.html">Feed</a></li>
				<li><a href="class-RedMVC.File.html">File</a></li>
				<li><a href="class-RedMVC.Form.html">Form</a></li>
				<li class="active"><a href="class-RedMVC.HttpRequest.html">HttpRequest</a></li>
				<li><a href="class-RedMVC.Image.html">Image</a></li>
				<li><a href="class-RedMVC.Layout.html">Layout</a></li>
				<li><a href="class-RedMVC.Locale.html">Locale</a></li>
				<li><a href="class-RedMVC.Mail.html">Mail</a></li>
				<li><a href="class-RedMVC.Navigation.html">Navigation</a></li>
				<li><a href="class-RedMVC.Page.html">Page</a></li>
				<li><a href="class-RedMVC.Paypal.html">Paypal</a></li>
				<li><a href="class-RedMVC.Random.html">Random</a></li>
				<li><a href="class-RedMVC.Registry.html">Registry</a></li>
				<li><a href="class-RedMVC.Session.html">Session</a></li>
				<li><a href="class-RedMVC.SessionMsg.html">SessionMsg</a></li>
				<li><a href="class-RedMVC.Translate.html">Translate</a></li>
				<li><a href="class-RedMVC.View.html">View</a></li>
				<li><a href="class-RedMVC.ViewHelper.html">ViewHelper</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="">
		<input type="hidden" name="ie" value="UTF-8">
		<input type="text" name="q" class="text">
		<input type="submit" value="Search">
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="namespace-RedMVC.html" title="Summary of RedMVC"><span>Namespace</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
			<li>
				<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
			</li>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class HttpRequest</h1>

	<div class="description">
	
<p>HttpRequest class</p>

	</div>








	<div class="info">
		
		
		<b>Namespace:</b> <a href="namespace-RedMVC.html">RedMVC</a><br>

				<b>Category:</b>
				RedMVC<br>
				<b>Author:</b>
				Jan Fischer, bitWorking &lt;<a
href="mailto:info&#64;bitworking.de">info&#64;<!---->bitworking.de</a>&gt;<br>
		<b>Located at</b> <a href="source-class-RedMVC.HttpRequest.html#5" title="Go to source code">HttpRequest.php</a><br>
	</div>


	<table class="summary" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="__construct" id="___construct">

		<td class="attributes"><code>
			
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___construct">#</a>
		<code><a href="source-class-RedMVC.HttpRequest.html#26" title="Go to source code">__construct</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="extractParams" id="_extractParams">

		<td class="attributes"><code>
			
			 protected 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_extractParams">#</a>
		<code><a href="source-class-RedMVC.HttpRequest.html#30" title="Go to source code">extractParams</a>( )</code>

		<div class="description short">
			
<p>extracts baseUrl, rootUrl and uses the router from config to read the
controller name, action name, GET params and request string</p>

		</div>

		<div class="description detailed hidden">
			
<p>extracts baseUrl, rootUrl and uses the router from config to read the
controller name, action name, GET params and request string</p>







		</div>
		</div></td>
	</tr>
	<tr data-order="getControllerName" id="_getControllerName">

		<td class="attributes"><code>
			
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getControllerName">#</a>
		<code><a href="source-class-RedMVC.HttpRequest.html#65" title="Go to source code">getControllerName</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="getActionName" id="_getActionName">

		<td class="attributes"><code>
			
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getActionName">#</a>
		<code><a href="source-class-RedMVC.HttpRequest.html#69" title="Go to source code">getActionName</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="getParams" id="_getParams">

		<td class="attributes"><code>
			
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getParams">#</a>
		<code><a href="source-class-RedMVC.HttpRequest.html#73" title="Go to source code">getParams</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="getBaseUrl" id="_getBaseUrl">

		<td class="attributes"><code>
			
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getBaseUrl">#</a>
		<code><a href="source-class-RedMVC.HttpRequest.html#77" title="Go to source code">getBaseUrl</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="getRootUrl" id="_getRootUrl">

		<td class="attributes"><code>
			
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getRootUrl">#</a>
		<code><a href="source-class-RedMVC.HttpRequest.html#81" title="Go to source code">getRootUrl</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="getRequestString" id="_getRequestString">

		<td class="attributes"><code>
			
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getRequestString">#</a>
		<code><a href="source-class-RedMVC.HttpRequest.html#85" title="Go to source code">getRequestString</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="__get" id="___get">

		<td class="attributes"><code>
			
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___get">#</a>
		<code><a href="source-class-RedMVC.HttpRequest.html#89" title="Go to source code">__get</a>( <span> <var>$key</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="__isset" id="___isset">

		<td class="attributes"><code>
			
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___isset">#</a>
		<code><a href="source-class-RedMVC.HttpRequest.html#96" title="Go to source code">__isset</a>( <span> <var>$key</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="__unset" id="___unset">

		<td class="attributes"><code>
			
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___unset">#</a>
		<code><a href="source-class-RedMVC.HttpRequest.html#100" title="Go to source code">__unset</a>( <span> <var>$key</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="_typeCast" id="__typeCast">

		<td class="attributes"><code>
			
			 protected 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#__typeCast">#</a>
		<code><a href="source-class-RedMVC.HttpRequest.html#104" title="Go to source code">_typeCast</a>( <span> <var>$value</var></span>, <span> <var>$type</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="get" id="_get">

		<td class="attributes"><code>
			
			 public 
			mixed
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_get">#</a>
		<code><a href="source-class-RedMVC.HttpRequest.html#122" title="Go to source code">get</a>( <span>string <var>$key</var></span>, <span>mixed <var>$default</var> = <span class="php-keyword1">null</span></span>, <span>mixed <var>$type</var> = <code><a href="class-RedMVC.HttpRequest.html#PARAM_TYPE_STRING">RedMVC\HttpRequest::<b>PARAM_TYPE_STRING</b></a></code></span> )</code>

		<div class="description short">
			
<p>gets a GET param</p>

		</div>

		<div class="description detailed hidden">
			
<p>gets a GET param</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd><code>string</code></dd>
					<dt><var>$default</var></dt>
					<dd><code>mixed</code><br> the value if key not found</dd>
					<dt><var>$type</var></dt>
					<dd><code>mixed</code><br> type casting</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>mixed</code><br>
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="post" id="_post">

		<td class="attributes"><code>
			
			 public 
			mixed
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_post">#</a>
		<code><a href="source-class-RedMVC.HttpRequest.html#137" title="Go to source code">post</a>( <span>string <var>$key</var></span>, <span>mixed <var>$default</var> = <span class="php-keyword1">null</span></span>, <span>mixed <var>$type</var> = <code><a href="class-RedMVC.HttpRequest.html#PARAM_TYPE_STRING">RedMVC\HttpRequest::<b>PARAM_TYPE_STRING</b></a></code></span> )</code>

		<div class="description short">
			
<p>gets a POST param</p>

		</div>

		<div class="description detailed hidden">
			
<p>gets a POST param</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd><code>string</code></dd>
					<dt><var>$default</var></dt>
					<dd><code>mixed</code><br> the value if key not found</dd>
					<dt><var>$type</var></dt>
					<dd><code>mixed</code><br> type casting</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>mixed</code><br>
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="isPost" id="_isPost">

		<td class="attributes"><code>
			
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_isPost">#</a>
		<code><a href="source-class-RedMVC.HttpRequest.html#152" title="Go to source code">isPost</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="__toString" id="___toString">

		<td class="attributes"><code>
			
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___toString">#</a>
		<code><a href="source-class-RedMVC.HttpRequest.html#159" title="Go to source code">__toString</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="setReferrer" id="_setReferrer">

		<td class="attributes"><code>
			
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setReferrer">#</a>
		<code><a href="source-class-RedMVC.HttpRequest.html#172" title="Go to source code">setReferrer</a>( )</code>

		<div class="description short">
			
<p>saves the referrer in session</p>

		</div>

		<div class="description detailed hidden">
			
<p>saves the referrer in session</p>







		</div>
		</div></td>
	</tr>
	</table>




	<table class="summary" id="constants">
	<caption>Constants summary</caption>
	<tr data-order="PARAM_TYPE_STRING" id="PARAM_TYPE_STRING">

		<td class="attributes"><code>
			
			string
		</code></td>
		<td class="name"><code>
				<a href="source-class-RedMVC.HttpRequest.html#13" title="Go to source code"><b>PARAM_TYPE_STRING</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'string'</span></code></td>
		<td class="description"><div>
			<a href="#PARAM_TYPE_STRING" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="PARAM_TYPE_INT" id="PARAM_TYPE_INT">

		<td class="attributes"><code>
			
			string
		</code></td>
		<td class="name"><code>
				<a href="source-class-RedMVC.HttpRequest.html#14" title="Go to source code"><b>PARAM_TYPE_INT</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'int'</span></code></td>
		<td class="description"><div>
			<a href="#PARAM_TYPE_INT" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="PARAM_TYPE_FLOAT" id="PARAM_TYPE_FLOAT">

		<td class="attributes"><code>
			
			string
		</code></td>
		<td class="name"><code>
				<a href="source-class-RedMVC.HttpRequest.html#15" title="Go to source code"><b>PARAM_TYPE_FLOAT</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'float'</span></code></td>
		<td class="description"><div>
			<a href="#PARAM_TYPE_FLOAT" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="PARAM_TYPE_BOOL" id="PARAM_TYPE_BOOL">

		<td class="attributes"><code>
			
			string
		</code></td>
		<td class="name"><code>
				<a href="source-class-RedMVC.HttpRequest.html#16" title="Go to source code"><b>PARAM_TYPE_BOOL</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'bool'</span></code></td>
		<td class="description"><div>
			<a href="#PARAM_TYPE_BOOL" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="PARAM_TYPE_OBJECT" id="PARAM_TYPE_OBJECT">

		<td class="attributes"><code>
			
			string
		</code></td>
		<td class="name"><code>
				<a href="source-class-RedMVC.HttpRequest.html#17" title="Go to source code"><b>PARAM_TYPE_OBJECT</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'object'</span></code></td>
		<td class="description"><div>
			<a href="#PARAM_TYPE_OBJECT" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	</table>



	<table class="summary" id="properties">
	<caption>Properties summary</caption>
	<tr data-order="controllerName" id="$controllerName">

		<td class="attributes"><code>
			
			protected 
			
		</code></td>

		<td class="name">
				<a href="source-class-RedMVC.HttpRequest.html#19" title="Go to source code"><var>$controllerName</var></a>
		</td>
		<td class="value"><code></code></td>
		<td class="description"><div>
			<a href="#$controllerName" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="actionName" id="$actionName">

		<td class="attributes"><code>
			
			protected 
			
		</code></td>

		<td class="name">
				<a href="source-class-RedMVC.HttpRequest.html#20" title="Go to source code"><var>$actionName</var></a>
		</td>
		<td class="value"><code></code></td>
		<td class="description"><div>
			<a href="#$actionName" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="params" id="$params">

		<td class="attributes"><code>
			
			protected 
			array
		</code></td>

		<td class="name">
				<a href="source-class-RedMVC.HttpRequest.html#21" title="Go to source code"><var>$params</var></a>
		</td>
		<td class="value"><code><span class="php-keyword1">array</span>()</code></td>
		<td class="description"><div>
			<a href="#$params" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="requestString" id="$requestString">

		<td class="attributes"><code>
			
			protected 
			
		</code></td>

		<td class="name">
				<a href="source-class-RedMVC.HttpRequest.html#22" title="Go to source code"><var>$requestString</var></a>
		</td>
		<td class="value"><code></code></td>
		<td class="description"><div>
			<a href="#$requestString" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="baseUrl" id="$baseUrl">

		<td class="attributes"><code>
			
			protected 
			
		</code></td>

		<td class="name">
				<a href="source-class-RedMVC.HttpRequest.html#23" title="Go to source code"><var>$baseUrl</var></a>
		</td>
		<td class="value"><code></code></td>
		<td class="description"><div>
			<a href="#$baseUrl" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="rootUrl" id="$rootUrl">

		<td class="attributes"><code>
			
			protected 
			
		</code></td>

		<td class="name">
				<a href="source-class-RedMVC.HttpRequest.html#24" title="Go to source code"><var>$rootUrl</var></a>
		</td>
		<td class="value"><code></code></td>
		<td class="description"><div>
			<a href="#$rootUrl" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	</table>


</div>

	<div id="footer">
		RedMVC Framework API documentation generated by <a href="http://apigen.org">ApiGen 2.4.0</a>
	</div>
</div>
</div>
</body>
</html>
